package com.dixon.worddayday.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class AddReq extends BaseReq{
    @NotBlank(message = "单词不能为空")
    @Pattern(regexp = "^[a-zA-Z]+$", message = "Word should only contain English letters")
    private String word;

    private int confirm;// 1表示要重新记忆已存在的单词
}
